package com.combat.text.user.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.combat.text.user.entity.Dept;
import com.combat.text.user.entity.user;
import com.combat.text.user.service.DeptService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author KangJx
 * @date 2020/12/15
 */
@RestController
@RequestMapping("/api/user")
public class DeptController {

    @Autowired
    DeptService deptService;

    @GetMapping("/list")
    public List<Dept> list(){
        return deptService.list();
    }

    @GetMapping("/show")
    public List<user> show(){
        return deptService.show();
    }

}
